<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 256px;
            height: 256px;
            background-image: url('./bg2.png');
            animation: people 0.3s steps(5) infinite alternate;
        }

        @keyframes people {
            0% {}

            100% {
                background-position: 1280px 0;
            }
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>